package com.stone.framework.message.auth;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

import io.swagger.annotations.ApiModelProperty;

public class LoginReqBody {

    @ApiModelProperty(value = "用户名", required = true)
    @NotBlank(message = "[username] {title.notBlank}")
    private String username;

    @ApiModelProperty(value = "密码", required = true)
    @NotBlank(message = "[password] {title.notBlank}")
    private String password;

    @ApiModelProperty(value = "验证码", required = true)
    @NotBlank(message = "[captcha] {title.notBlank}")
    private String captcha;

    @ApiModelProperty(value = "验证码Key", required = true)
    @NotBlank(message = "[captchaKey] {title.notBlank}")
    private String captchaKey;

    @ApiModelProperty(value = "渠道终端：APP|PC")
    @Pattern(regexp = "(APP|PC)", message = "[terminal] must be 'APP|PC'")
    private String terminal = "PC";

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getCaptcha() {
        return captcha;
    }

    public void setCaptcha(String captcha) {
        this.captcha = captcha;
    }

    public String getCaptchaKey() {
        return captchaKey;
    }

    public void setCaptchaKey(String captchaKey) {
        this.captchaKey = captchaKey;
    }

    public String getTerminal() {
        return terminal;
    }

    public void setTerminal(String terminal) {
        this.terminal = terminal;
    }

}
